﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.WindowsServices
{
    [Serializable]
    public class WindowsServiceInfo : MarshalByRefObject
    {
        public WindowsServiceInfo()
            : this(null)
        {
        }
        public WindowsServiceInfo(IWindowsService windowsService)
        {
            if (windowsService != null)
            {
                this.Id = windowsService.Id;
                this.Name = windowsService.Name;
                this.Description = windowsService.Description;
                this.Version = windowsService.Version.ToString();
                this.IsCmdable = windowsService is ICmdableWindowsService;
                this.IsVisualizable = windowsService is IVisualizableWindowsService;
            }
        }


        public string Id
        {
            get;
            set;
        }

        public string Name
        {
            get;
            set;
        }

        public string Description
        {
            get;
            set;
        }

        public string Version
        {
            get;
            set;
        }

        public bool IsCmdable { get; set; }
        public bool IsVisualizable { get; set; }

       
    }
}
